package cn.jiyun.config;

import cn.jiyun.pojo.User;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConflg {
    @Bean
    @ConfigurationProperties(prefix = "user")
    public User user(){
User user=new User();
return user;
    }
}
